from typing import List, Tuple, Set, Dict


# 对于这个List在 python 3.9及以上的版本也可以直接使用list
def process_items(items: List[str]):
    for item in items:
        print(item)

process_items(["item1", "item2", "item3"])


def process_items2(items_t: Tuple[int,int,str],items_s: Set[str]):
    print("items_t:")
    for item in items_t:
        print(item,end="\t")
    print()
    print("=" * 30)
    print("items_s:")
    for item in items_s:
        print(item,end="\t")
    print()

process_items2((1,2,"a"),{"abc","def"})

def process_item3(prices: Dict[str,float]):
    for item_name,price in prices.items():
        print(item_name,price)

process_item3({"item1":10.99,"item2":5.99})


class Person:
    def __init__(self,name:str, age:int):
        self.name = name
        self.age = age


def get_person_info(person: Person):
    print(person.name,person.age)

get_person_info(Person("张三",18))